#define _CRT_SECURE_NO_WARNINGS 1
#include"stack.h";
#include"Queue.h"
#include<vector>
#include<deque>

using namespace std;

int main()
{
	Study::Stack<int,deque<int>> st;

	st.push(1);
	st.push(2);
	st.push(3);

	int n = st.size();
	while (n--)
	{
		cout << st.top() << " ";
		st.pop();
	}

	cout << endl;

	Study::Queue<int, deque<int>> q;

	q.push(1);
	q.push(2);
	q.push(3);

	int qn = q.size();
	while (qn--)
	{
		cout << q.top() << " ";
		q.pop();
	}

	cout << endl;


	return 0;
}